First of all I want to thank the guys form this forum for there work and help that I found more then use full an different occasions.
Here is my c programing exercise.
Write a c program that shows all the products tahat have the price over 10.
Any help would be apreciated
This is how I thought I could make the program
#include<stdio.h>
int nr_products;//initialization
int nr_prices;
char products;
int price;
int main()
{
nr_products=nr_prices;
if(nr_products=2)
printf("No products");
scanf("%d",&nr_products);
printf("Products:");//enter the products
scanf("%c",products);
printf("Price:");//enter price
scanf("%d",&price);
if(price>10)//condition over 10
{
printf("Products that have the price over 10 are",products);//products over 10
}
else printf("Eroare");//not found nay products over 10
getch();
}