Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  zoj and fard
Language: C/C++
Code:
#include <iostream>
#include <string>
using namespace std;
int main()
{
int i = 0,number,zoj = 0,fard = 0,zaribse = 0;
for(int i;i < 10;i++){
cout << "Enter Number : " ;
cin >> number;
if(number % 3 == 0){
    zaribse++;
    }
    if(number%2 == 0){
        zoj++;
        }else{
            fard++;
            }
}
cout << "zoj" << zoj << endl << "fard : " << fard << endl << "zaribe 3 :" << zaribse << endl ;
}

          
Comments: